*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    display: flex;
    min-height: 100vh;
    justify-content: center;
    align-items: center;
    background-color: antiquewhite;
}

ul{
    /* position: absolute; */
    list-style: none;
    width: 198px;
    height: 1000px;
    transform-style: preserve-3d;
    z-index: 1;

    /* overflow: hidden; */
    /* animation: heihei 10s linear infinite; */
}

@keyframes heihei{
    100%{
        transform: rotateX(360deg);
    }
}

.box{
    position: relative;
    transform-style: preserve-3d;
    display: flex;
    align-items: center;
    box-shadow: 100px 100px 60px 20px rgba(0, 0, 0, 0.5);
    /* position: relative; */
}

span{
    position: absolute;
    display: block;
    height: 150px;
    width: 150px;
    font-size: 100px;
    text-align: center;
    line-height: 150px;
    background-color: rgba(220, 209, 209, 0.5);
    color: rgb(204, 238, 246);
    cursor: pointer;
    transform: translateZ(1000px);
    transition: 0.2s;
}

span:nth-child(2){
    right: 0;
}

span:hover{
    color: rgb(232, 205, 205);
    background-color: rgba(220, 209, 209,0.6);
}

li{
    width: 198px;
    /* width: 100%; */
    height: 100%;
    position: absolute;
    transform: translateZ(500px);
    /* z-index: 1; */
    overflow: hidden;
}

/* ---------------------1----------------------- */

li:nth-child(1){
    background: url('img/5.jpeg');
    
}

.a li:nth-child(1){
    transform: translateZ(500px);
    background-position: 0;
    
}

.b li:nth-child(1){
    transform: translateZ(500px);
    background-position: -200px ;
    
}

.c li:nth-child(1){
    transform: translateZ(500px);
    background-position: -400px ;
    
}

.d li:nth-child(1){
    transform: translateZ(500px);
    background-position: -600px;
    
}

.e li:nth-child(1){
    transform: translateZ(500px);
    background-position: -800px; 
    
}


/* -------------------2---------------------- */
li:nth-child(2){
    background: url('img/2.jpeg');
}

.a li:nth-child(2){
    transform: rotateX(90deg) translateZ(500px);
    background-position: 0;
}

.b li:nth-child(2){
    transform: rotateX(90deg) translateZ(500px);
    background-position: -200px;
}

.c li:nth-child(2){
    transform: rotateX(90deg) translateZ(500px);
    background-position: -400px;
}

.d li:nth-child(2){
    transform: rotateX(90deg) translateZ(500px);
    background-position: -600px;
}

.e li:nth-child(2){
    transform: rotateX(90deg) translateZ(500px);
    background-position: -800px;
}

/* --------------------3--------------------- */
ul li:nth-child(3){
    background: url('img/3.jpeg');
}

.a li:nth-child(3){
    transform: rotateX(180deg) translateZ(500px);
    background-position: 0;
}

.b li:nth-child(3){
    transform: rotateX(180deg) translateZ(500px);
    background-position: -200px;
}

.c li:nth-child(3){
    transform: rotateX(180deg) translateZ(500px);
    background-position: -400px;
}

.d li:nth-child(3){
    transform: rotateX(180deg) translateZ(500px);
    background-position: -600px;
}

.e li:nth-child(3){
    transform: rotateX(180deg) translateZ(500px);
    background-position: -800px;
}

/* -----------------4------------------ */
ul li:nth-child(4){
    background: url('img/4.jpeg');
}

.a li:nth-child(4){
    transform: rotateX(270deg) translateZ(500px);
    background-position: 0;
}

.b li:nth-child(4){
    transform: rotateX(270deg) translateZ(500px);
    background-position: -200px;
}

.c li:nth-child(4){
    transform: rotateX(270deg) translateZ(500px);
    background-position: -400px;
}

.d li:nth-child(4){
    transform: rotateX(270deg) translateZ(500px);
    background-position: -600px;
}

.e li:nth-child(4){
    transform: rotateX(270deg) translateZ(500px);
    background-position: -800px;
}

ul{
    transition: 0.8s;
    transition-timing-function: cubic-bezier(0.42, 0, 0.38, 1.29);
}

.b{
    transition-delay: 0.2s;
}

.c{
    transition-delay: 0.4s;
}

.d{
    transition-delay: 0.6s;
}

.e{
    transition-delay: 0.8s;
}

